﻿@model Common.Background.WebManageRoles
@{
    ViewBag.Title = "权限管理";
    ViewBag.Meta_KeyWords = "权限管理";
    ViewBag.Meta_Description = "权限管理";
}
@section Head{
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
}
@Html.Partial("ContentListTag.Partial", new List<Common.Background.Models.LinkModel> { new Common.Background.Models.LinkModel("建立角色") })
@using (Html.BeginForm())
{  
    @Html.ValidationSummary(true)
    @Html.Partial("RolePartial")
    @Html.CreateButton("添加", OperatorAuthority.Add)
}
<script>
    $(function () {
        $("input[type=checkbox]").live("click", function () {
            if ($(this).attr("checked") == "checked")
                $(this).nextAll("ul").find(":checkbox").attr("checked", "checked");
            else
                $(this).nextAll("ul").find(":checkbox").removeAttr("checked");
        });
    });
</script>
